package com.foreverwin.mes.meapi.model;

import java.io.Serializable;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 用户组
 * </p>
 *
 * @author Max
 * @since 2020-03-27
 */
public class UserGroup extends Model<UserGroup> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 放行原因
     */
   @TableField("CHANGE_STAMP")
   private BigDecimal changeStamp;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 用户组
     */
   @TableField("USER_GROUP")
   private String userGroup;
    /**
     * 用户组描述
     */
   @TableField("DESCRIPTION")
   private String description;
    /**
     * 工站外键
     */
   @TableField("WORKSTATION_BO")
   private String workstationBo;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 创建日期
     */
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public BigDecimal getChangeStamp() {
      return changeStamp;
   }

   public void setChangeStamp(BigDecimal changeStamp) {
      this.changeStamp = changeStamp;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getUserGroup() {
      return userGroup;
   }

   public void setUserGroup(String userGroup) {
      this.userGroup = userGroup;
   }

   public String getDescription() {
      return description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   public String getWorkstationBo() {
      return workstationBo;
   }

   public void setWorkstationBo(String workstationBo) {
      this.workstationBo = workstationBo;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String CHANGE_STAMP = "CHANGE_STAMP";

   public static final String SITE = "SITE";

   public static final String USER_GROUP = "USER_GROUP";

   public static final String DESCRIPTION = "DESCRIPTION";

   public static final String WORKSTATION_BO = "WORKSTATION_BO";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "UserGroup{" +
         "handle = " + handle +
         ", changeStamp = " + changeStamp +
         ", site = " + site +
         ", userGroup = " + userGroup +
         ", description = " + description +
         ", workstationBo = " + workstationBo +
         ", createdDateTime = " + createdDateTime +
         ", modifiedDateTime = " + modifiedDateTime +
         "}";
   }
}